{# /*
 * 这个文件是分页跳转专用，不可用于ajax分页
 * @Author: xiezuobing(948466)[435321508@qq.com]  
 * @Date: 2017-12-18 15:18:18 
 * @Last Modified by: xiezuobing
 * @Last Modified time: 2017-12-18 15:18:41
 */ #}

<!--分页参数部分-->
<input type="hidden" id="pageSize" value="{{ params.pageSize }}"/>
<input type="hidden" id="pageNo" value="{{ params.pageNo }}"/>
<input type="hidden" id="totalSize" value="{{ params.totalSize }}"/>
<!--分页参数部分-->
<!--分页-->
<div class="fixed-table-pagination ibox-content clearfix">
  <div class="pull-left pagination-detail">
    <span class="pagination-info">每页 {{params.pageSize}} 条记录，总共 {{params.totalSize}} 条记录, 共 {{params.totalPage}} 页</span>
    <span class="page-list">每页显示 <span class="btn-group dropup">
    <button type="button" class="btn btn-default  btn-outline dropdown-toggle" data-toggle="dropdown">
      <span class="page-size">{{params.pageSize}}</span> 
      <span class="caret"></span>
    </button>
    <ul class="dropdown-menu pagination_menu" role="menu">
        <li{% if params.pageSize == 10 %} class="active"{% endif %}><a href="javascript:void(0)">10</a></li>
        <li{% if params.pageSize == 25 %} class="active"{% endif %}><a href="javascript:void(0)">25</a></li>
        <li{% if params.pageSize == 50 %} class="active"{% endif %}><a href="javascript:void(0)">50</a></li>
    </ul>
    </span> 条记录</span>
  </div>
  <div class="pull-right pagination">
      {% if params.totalPage > 1 %}
      <ul class="pagination pagination-outline pagination_page">
          <li class="page-first pageItem {% if params.pageNo == 1 %} disabled {% endif %}" pageNo = "1"><a href="javascript:void(0)">«</a></li>
          <li class="page-pre pageItem {% if params.pageNo == 1 %} disabled {% endif %}" pageNo = "{{params.pageNo - 1}}"><a href="javascript:void(0)">‹</a></li>
          {% if params.totalPage <= 3 %}
            {% for index in range(1, params.totalPage + 1) %}
            <li class="page-number pageItem {% if index == params.pageNo %}active{% endif %}" pageNo = "{{index}}"><a href="javascript:void(0)">{{index}}</a></li>
            {% endfor %}
          {% else %}
            {% if params.pageNo == 1 %}
            <li class="page-number pageItem active" pageNo = "1"><a href="javascript:void(0)">1</a></li>
            <li class="page-number pageItem " pageNo = "2"><a href="javascript:void(0)">2</a></li>
            <li class="page-number pageItem " pageNo = "3"><a href="javascript:void(0)">3</a></li>
            {% elseif params.pageNo == params.totalPage %}
            <li class="page-number pageItem" pageNo = "{{params.pageNo-2}}"><a href="javascript:void(0)">{{params.pageNo-2}}</a></li>
            <li class="page-number pageItem" pageNo = "{{params.pageNo-1}}"><a href="javascript:void(0)">{{params.pageNo-1}}</a></li>
            <li class="page-number pageItem active" pageNo = "{{params.pageNo}}"><a href="javascript:void(0)">{{params.pageNo}}</a></li>
            {% else %}
            <li class="page-number pageItem" pageNo = "{{params.pageNo-1}}"><a href="javascript:void(0)">{{params.pageNo-1}}</a></li>
            <li class="page-number pageItem active" pageNo = "{{params.pageNo}}"><a href="javascript:void(0)">{{params.pageNo}}</a></li>
            <li class="page-number pageItem " pageNo = "{{params.pageNo+1}}"><a href="javascript:void(0)">{{params.pageNo+1}}</a></li>
            {% endif %}
          {% endif %}
          <li class="page-next pageItem {% if params.pageNo == params.totalPage %} disabled {% endif %}" pageNo = "{{params.pageNo + 1}}"><a href="javascript:void(0)">›</a></li>
          <li class="page-last pageItem {% if params.pageNo == params.totalPage %} disabled {% endif %}" pageNo = "{{params.totalPage}}"><a href="javascript:void(0)">»</a></li>
      </ul>
      {% endif %}
  </div>
</div>
<!--/分页-->